//
//  SHEIntroductionVC.m
//  SHEPuzzleFigure
//
//  Created by SW mini on 2019/11/25.
//  Copyright © 2019 Figure. All rights reserved.
//

#import "SHEIntroductionVC.h"

@interface SHEIntroductionVC ()

@property (weak, nonatomic) IBOutlet UILabel *nameLab;
@property (weak, nonatomic) IBOutlet UILabel *versionLab;
@property (weak, nonatomic) IBOutlet UITextView *infoLab;


@end

@implementation SHEIntroductionVC

- (void)viewDidLoad {
    [super viewDidLoad];
    [super createBackBtn];
    
    [_nameLab addShadow];
    [_versionLab addShadow];
    
    // 添加行间距
    NSMutableParagraphStyle *paragraph = [[NSMutableParagraphStyle alloc]init];
    paragraph.lineSpacing = 8.0;
    //阴影
    NSShadow *shadow = [[NSShadow alloc] init];
    shadow.shadowBlurRadius = 1;
    shadow.shadowColor = [UIColor grayColor];
    shadow.shadowOffset = CGSizeMake(1, 1);
    
    NSAttributedString * attributedText = [[NSAttributedString alloc] initWithString:_infoLab.text attributes:@{
        NSShadowAttributeName:shadow,
        NSFontAttributeName:[UIFont boldSystemFontOfSize:19],
        NSForegroundColorAttributeName :[UIColor whiteColor],
        NSParagraphStyleAttributeName:paragraph
    }];
    _infoLab.attributedText = attributedText;
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
